package niconama04.server;

import java.util.List;

import niconama04.client.ReferenceService;
import niconama04.model.impl.TransacterFactory;
import niconama04.shared.data.Category;
import niconama04.shared.data.CategoryOriginal;
import niconama04.shared.data.Grammer;
import niconama04.shared.data.GrammerWord;
import niconama04.shared.data.Original;
import niconama04.shared.data.Word;

import com.google.gwt.user.server.rpc.RemoteServiceServlet;


public class ReferenceServiceImpl extends RemoteServiceServlet implements ReferenceService {

	/** Serial Version */
	private static final long serialVersionUID = -7900122440192793959L;

	@Override
	public List<Grammer> getGrammers() throws Exception {
		return TransacterFactory.getInstance().getLoader().getGrammers();
	}

	@Override
	public List<Word> getWords() throws Exception {
		return TransacterFactory.getInstance().getLoader().getWords();
	}

	@Override
	public List<Original> getOriginals() throws Exception {
		return TransacterFactory.getInstance().getLoader().getOriginals();
	}

	@Override
	public List<Category> getCategorys() throws Exception {
		return TransacterFactory.getInstance().getLoader().getCategorys();
	}

	@Override
	public List<GrammerWord> getGrammerWords() throws Exception {
		return TransacterFactory.getInstance().getLoader().getGrammerWords();
	}

	@Override
	public List<CategoryOriginal> getCategoryOriginals() throws Exception {
		return TransacterFactory.getInstance().getLoader().getCategoryOriginals();
	}
}
